﻿<!doctype html>
<html>
<head>
    <!--<meta name="viewport" content="width=device-width,initial-scale=1, user-scalable=no"/>-->
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="full-screen" content="true"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta name="360-fullscreen" content="true"/>
    <style>
        html, body {
            -ms-touch-action: none;
            background: #000000;
            padding: 0;
            border: 0;
            margin: 0;
            height: 100%;
            overflow:hidden;
        }
        .qrcode{
            padding:200px 0 0 200px !important;
            margin:-200px 0 0 -200px !important;

            -webkit-user-select: none;
        }
    </style>
  <title>永恒之心</title>
</head>



<div style="display: none">
    <?php
        require_once "jssdk.php";
        $jssdk = new JSSDK("wx409a5223727cfbde", "3750cb321b4965883f1ccbe1fc945f8d");
        $signPackage = $jssdk->GetSignPackage();
    ?>
    <!doctype html>
    <img src='suolue.png' width="400" height="400"/>
</div>
<!--<img ID='qcode' class='qrcode' src='assets/images/p3_t4.png' style='position:absolute;opacity:0'/>-->
<!--<img ID='qcode' src='assets/images/qcode.png' style='position:absolute;opacity:1;left:300px;top:600px'/>-->
<audio id="sound_bg" class="media-audio" src="assets/bg.mp3" autoplay='autoplay' preload="preload" loop="loop"></audio>

<script src='http://res.wx.qq.com/open/js/jweixin-1.0.0.js' src-release="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="lib/pixi.min.js"></script>
<script src="lib/greensock/TweenMax.js"></script>
<script src="lib/filters/filters.js"></script>
<script src="lib/pixi-particles.min.js"></script>
<script src="Page0.js"></script>
<script src="Page1.js"></script>
<script src="Page2.js"></script>
<script src="Page3.js"></script>
<script src="PageSub0.js"></script>
<script src="PageSub1.js"></script>
<script src="PageSub2.js"></script>
<script src="PageSub3.js"></script>
<script src="Game.js"></script>
<script src="Scroller.js"></script>
<script src="ParticleDemo.js"></script>
<script src="Preload.js"></script>
<script src="Main.js"></script>

<script>
    wx.config({
        debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: '<?php echo $signPackage["timestamp"];?>',
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['onMenuShareAppMessage']
    });
    wx.ready(function () {
        wx.onMenuShareAppMessage({
            title: '永恒之心', // 分享标题
            desc: '滨江之尊，致敬世界百年家族的永恒之心 ', // 分享描述
            link: 'http://www.yixuanhudong.com/JLC/E18_JiaZu/index.html', // 分享链接
            imgUrl: 'http://www.yixuanhudong.com/JLC/E18_JiaZu/suolue.png',
            type: 'link', // 分享类型,music、video或link，不填默认为link
            success: function () {

            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        wx.error(function (res) {
            // config信息验证失败会执行error函数，如签名过期导致验证失败
        });
    });

    var audio;
    document.addEventListener("WeixinJSBridgeReady", playMusic, false);
    function playMusic() {
        audio = document.getElementById('sound_bg');
        audio.play();
    }
    function volumeChange(_volume) {
        audio = document.getElementById('sound_bg');
        if(_volume==1)
        {
            audio.play();
        }
        else
        {
            audio.pause();
        }
        audio.volume=_volume;
    }
</script>
<script>
    var _mtac = {};
    (function() {
        var mta = document.createElement("script");
        mta.src = "http://pingjs.qq.com/h5/stats.js?v2.0.2";
        mta.setAttribute("name", "MTAH5");
        mta.setAttribute("sid", "500417039");
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(mta, s);
    })();
</script>

</body>
</html>